/**
 * @FileName: Constants.java
 * @Package:com.bdtop.dbl.utils
 * @Description: TODO
 * @author: MingjunLi
 * @date:2014-9-16
 * @version V1.0
 */

package com.bdtop.dbl.utils;

/**
 * @ClassName: Constants
 * @Description: TODO
 * @author: MingjunLi
 * @date:2014-9-16
 */
public class Constants {

    // Server Address
    public static final String SERVER_ADDRESS = "http://111.4.117.68:6163/";

    // Commands
    public static final String COMMAND = "cmd";
    public static final String CMD_REGISTER = "verify_phone";
    public static final String CMD_VERIFY = "verify_confirm";
    public static final String CMD_LOGIN = "login_DBL";
    public static final String CMD_GET_DEVICE_LIST = "device_info";
    public static final String CMD_ADD_DEVICE = "device_add";
    public static final String CMD_GET_ADDRNAME = "get_addrname";
    public static final String CMD_DEL_DEVICE = "device_del";
    public static final String CMD_GET_POSITION = "get_position";
    public static final String CMD_GET_HISTORY_TRACK = "get_history_track";
    public static final String CMD_ADD_FENCE = "fence_add";
    public static final String CMD_GET_MESSAGE = "get_message";
    public static final String CMD_GET_FENCE = "get_fence";
    public static final String CMD_FENCE_MODI = "fence_modi";
    public static final String CMD_FENCE_DEL = "fence_del";
    public static final String CMD_FENCE_SET = "fence_set";
    public static final String CMD_DEVICE_DEL = "device_del";
    public static final String CMD_SEND_SMSCMD = "send_smscmd";
    public static final String CMD_GET_ALLPOSI = "get_allposi";
    public static final String CMD_DEVICE_MODI = "device_modi";
    public static final String CMD_GET_DEVICE = "get_device";
    public static final String CMD_GET_ALL_DEVICE = "get_all_device";
    public static final String CMD_GET_VERSION = "get_version";
    public static final String CMD_AUTH_CODE = "auth_code";
    public static final String CMD_RESET_PASS = "reset_pass";
    public static final String CMD_MODI_PASS = "modi_pass";
    public static final String CMD_GET_LOG = "get_log";
    public static final String CMD_MODI_IMG = "modi_img";
    public static final String CMD_DOWN_IMG = "down_img";
    public static final String CMD_LOGOUT_DBL = "logout_DBL";
    public static final String CMD_UPDATE_CID = "update_cid";

    // Request Parameter Keys
    public static final String PARAM_USER_NAME = "user_number";
    public static final String PARAM_PWD = "passwd";
    public static final String PARAM_SRCPW = "srcpw";
    public static final String PARAM_LOGIN_SIGN = "sign";
    public static final String PARAM_MDN = "mdn";
    public static final String PARAM_VERIFY_CODE = "code";
    public static final String PARAM_IMEI = "IMEI";
    public static final String PARAM_IMSI = "IMSI";
    public static final String PARAM_UTC1 = "utc1";
    public static final String PARAM_UTC2 = "utc2";
    public static final String PARAM_FENCENAME = "fence_name";
    public static final String PARAM_LON = "lon";
    public static final String PARAM_LAT = "lat";
    public static final String PARAM_RADIUS = "radius";
    public static final String PARAM_FENCE_ID = "fence_id";
    public static final String PARAM_OPEN = "open";
    public static final String PARAM_SMSCMD = "smscmd";
    public static final String PARAM_NAME = "name";
    public static final String PARAM_IMGID = "imgid";
    public static final String PARAM_IMGDATA = "imgdata";
    public static final String PARAM_POWER = "power";
    public static final String PARAM_LOCATION_MODE = "location_mode";
    public static final String PARAM_SOS_PHONES = "sos_phones";
    public static final String PARAM_CID = "cid";
    public static final String PARAM_X = "x";
    public static final String PARAM_Y = "y";

    // Request Status
    public static final String REQUEST_SUCCESS = "0";
    public static final String REQUEST_FAILED = "1";

    // Intent Extra Keys
    public static final String INTENT_NAME = "name";
    public static final String INTENT_CODE = "code";
    public static final String INTENT_DEVICE = "device";

    // Shared Preferences Keys

    // Message Type
    public static final String MSGTYPE_SYS = "0";
    public static final String MSGTYPE_ALARM = "1";

    // Fence status
    public static final String FENCE_STATUS_OPEN = "y";
    public static final String FENCE_STATUS_CLOSE = "n";

    // BaiDu map
    public static final float DEFAULT_ZOOM_LEVEL = 17; // best <= 17

    public static final String VALIDATE_NAME = "^[_a-zA-Z0-9\u4e00-\u9fa5]+$";
    public static final String VALIDATE_IMEI = "^[\\d]{15}$";
    
    
    public static final int MAX_FENCE_COUNT = 8;
    
    public static final int REMIND_DOWN_MAP_TIME = 3;
    
    public static final int DEFAULT_FANGDIU_JULI = 20;
    public static final int DEFAULT_MIN_RSSI = 0;
    
    public static final String TEST_PHONE = "000000";
    public static final String TEST_PWD  = "000000";
    
    public static final String SP_PATH = "dbl_com_sp";
    
    public static final String PUSH_MESSAGE_DEVICE_SOS  = "message_device_sos";
    public static final String PUSH_MESSAGE_DEVICE_POSI  = "message_device_posi";
    
    public static final String PUSH_MESSAGE_DEVICE_NOPOSI = "message_device_noposi"; // 设备未返回定位数据
    

    public static final String EMPTY_ADDRESS_INFO = "位置描述获取中...";
    public static final String ERROR_ADDRESS_INFO = "暂时无法获取位置信息";
    
    public static final String BUNDLE_URL = "bundle_url";
    public static final String url_help = "http://www.hbmat.cn/bdtop/help/";
    
    public static final String ble_SuiYiZhao = "SuiYiZhao";
    
    
    
}
